/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* 登录框 */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* 登录头部 */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 48px;
    color: #0083b0;
    margin-bottom: 20px;
}

.login-header h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #0083b0;
    box-shadow: 0 0 0 2px rgba(0, 131, 176, 0.1);
}

.input-group i {
    padding: 15px;
    color: #666;
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
}

.input-group input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 16px;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #0083b0, #006687);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(1px);
}

/* 错误消息 */
.error-message {
    background-color: #fff3f3;
    color: #dc3545;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.error-message i {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
}

/* 输入框占位符样式 */
::placeholder {
    color: #999;
}

/* 角色选择样式 */
.role-select {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.role-select label {
    position: relative;
    padding: 12px 25px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-select label:hover {
    background: #f1f3f5;
    border-color: #dee2e6;
}

.role-select input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-select input[type="radio"] + i {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.role-select input[type="radio"]:checked + i {
    border-color: #0083b0;
    background: #0083b0;
}

.role-select input[type="radio"]:checked + i:after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.role-select input[type="radio"]:checked + i + span {
    color: #0083b0;
    font-weight: 500;
}

.role-select label:has(input[type="radio"]:checked) {
    border-color: #0083b0;
    background: #f0f9fc;
}
 